package com.avantis.common.repository;

import com.avantis.common.entity.Company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @Description:    java类作用描述
* @Author:         kirago
* @CreateDate:     2019/1/12 6:43 PM
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
@Repository
public interface CompanyRepository extends JpaRepository<Company, Integer>, JpaSpecificationExecutor {

    Company findByCompanyName(String companyName);
    List<Company> findAll();
}
